golang/xenlight: re-factor Hwcap type implementation
authorNick Rosbrook <rosbrookn@ainfosec.com>
Mon, 16 Dec 2019 18:08:07 +0000 (18:08 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Mon, 16 Dec 2019 18:08:07 +0000 (18:08 +0000)
commitf0e2384f3febca043067f27b5e513e0b05570a33
treebfc02fe3adb1ead18ad706b3c56f0e57e796ede5
parent685001ee947f0c37ebf8c6bd9ad99bd570221a63
golang/xenlight: re-factor Hwcap type implementation

Re-define Hwcap as [8]uint32, and implement toC function. Also, re-name and
modify signature of toGo function to fromC.

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/golang/xenlight/xenlight.go